<?php
class Application_Form_Menu extends Zend_Form{
	public function init()
	{
		$this->setMethod('post');
	
		// create new element
		$id = $this->createElement('hidden', 'id');
		// element options
		$id->setDecorators(array('ViewHelper'));
		// add the element to the form
		$this->addElement($id);
	
		// create new element
		$name = $this->createElement('text', 'name');
		// element options
		$name->setLabel('名称: ');
		$name->setRequired(TRUE);
		$name->setAttrib('size',40);
		// strip all tags from the menu name for security purposes
		$name->addFilter('StripTags');
		// add the element to the form
		$this->addElement($name);
	
		$submit = $this->addElement('submit', 'submit', array('label' => '提交'));
	
	}
	
	
}